package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_ZFFS"
 *     
*/
public class DmZff implements Serializable {

    /** identifier field */
    private String zffsDm;

    /** nullable persistent field */
    private String zffsMc;

    /** full constructor */
    public DmZff(String zffsDm, String zffsMc) {
        this.zffsDm = zffsDm;
        this.zffsMc = zffsMc;
    }

    /** default constructor */
    public DmZff() {
    }

    /** minimal constructor */
    public DmZff(String zffsDm) {
        this.zffsDm = zffsDm;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="ZFFS_DM"
     *         
     */
    public String getZffsDm() {
        return this.zffsDm;
    }

    public void setZffsDm(String zffsDm) {
        this.zffsDm = zffsDm;
    }

    /** 
     *            @hibernate.property
     *             column="ZFFS_MC"
     *             length="30"
     *         
     */
    public String getZffsMc() {
        return this.zffsMc;
    }

    public void setZffsMc(String zffsMc) {
        this.zffsMc = zffsMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("zffsDm", getZffsDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmZff) ) return false;
        DmZff castOther = (DmZff) other;
        return new EqualsBuilder()
            .append(this.getZffsDm(), castOther.getZffsDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getZffsDm())
            .toHashCode();
    }

}
